#!/bin/bash

#script to run neurolabi
#FILE=data/689-146-20x-start_Series040_z084_ch00.tif
#FILE=data/696_019/696_019_50x_1/696_019_50x_1_Series005_z
#FILE=data/659_126_100x_1_bottom/659_126_100x_1_bottom_Series01_z201_ch00.raw
#FILE2=data/696_019/696_019_50x_1/696_019_50x_1_Series005_z
FILE=data/696_019/696_019_50x_2/696_019_50x_2_Series002_z
FILE2=data/696_019/696_019_50x_3/696_019_50x_3_Series002_z
#FILE2=data/696_019/696_019_50x_4/696_019_50x_4_Series002_z
#FILE2=data/696_019/696_019_50x_5/696_019_50x_5_Series002_z
OUTFILE=data/out.tif

if [ $# -eq 0 ]
then
./testimglib $FILE $FILE2
else
case $1 in
    1) make;;
    2) make
	    ./testimglib $FILE;;
    3) make
	    ./testimglib $FILE
	    /usr/bin/open -a /Applications/ImageJ/ImageJ.app/ $OUTFILE;;
    4) make
	    ./testimglib $FILE o;;
esac
fi
